home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
L' Effet Pommier 3
/
L'Effet Pommier - Volume 03.iso
/
Programmation
/
Alpha ƒ
/
Tcl
/
UserCode
/
Text Filters
/
Text Munging
/
shuffle
< prev
next >
Wrap
Text File
|
1994-02-11
|
230b
|
7 lines
#!/usr/bin/perl
srand; # Randomize the rand function.
@lines = <>; # Read in all the lines.
while (@lines) { # While more than 0 elements.
print splice(@lines, rand @lines, 1);
}